You can sort notes by right-clicking the parent note in the Note Tree and selecting Advanced -> Sort notes by ... This will sort existing notes, but will not automatically sort future notes added to this parent note.
The sorting dialog allows:
Child notes can be automatically sorted by attaching specific labels to the parent note:
| Label | Description |
|---|---|
#sorted
|
Keeps child notes sorted by title alphabetically. When given a value, it will sort by the value of another label instead. If one of the child notes doesn't have the specified label, the title will be used for them instead. |
#sortDirection
|
If
|
#sortFoldersFirst
|
If sorted is applied, folders (notes with
children) will be sorted as a group at the top, and the rest will be sorted. |
#sortNatural
|
Sort numbers naturally instead of alphabetically, so 2 comes before 10. |
#sortLocale
|
The language code driving the natural sort (e.g. zh-CN,
de). Only meaningful together with #sortNatural. |
#top
|
If sorted is applied to the parent note,
keeps given note on top in its parent. |
#bottom
|
If sorted is applied to the parent note,
keeps given note on bottom in its parent. |
Sorting is done by comparing note properties or specific labels on child notes. There are four sorting levels, with the first having the highest priority. Lower priority levels are applied only if higher priority comparisons result in equality.
#top label
will appear at the top of the folder.#bottom label will appear
at the bottom of the folder.#sorted label:
#sorted has
no value, notes are sorted alphabetically.#sorted is
set to title, dateModified,
or dateCreated, notes are sorted based on
the specified property.#sorted has
any other value, this value is treated as the name of a child note's label,
and sorting is based on the values of this label. For example, setting
#sorted=myOrderon the parent note and using #myOrder=001,
#myOrder=002, etc., on child notes.All comparisons are made string-wise (e.g., "1" < "2" or "2020-10-10" < "2021-01-15", but also "2" > "10").